package indzcraft.ranking;

public class EP<T> implements Comparable<EP<T>>  {

	private T item;
	private double ep;
	
	public EP(T item,double ep){
		this.item = item;
		this.ep = ep;
	}

	public int compareTo(EP<T> o) {
		if(this.ep > o.ep)
			return -1;
		else if(this.ep < o.ep)
			return 1;
		return 0;
	}

	public T getItem() {
		return item;
	}
	public double getEP() {
		return ep;
	}

}
